package com.leather.quan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leather.common.entity.QuanComment;
import com.leather.quan.vo.CommentQueryVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
*  @author kevin
*/
public interface QuanCommentMapper extends BaseMapper<QuanComment> {


    @Select("select a.*,b.nick_name,b.img_url from quan_comment a,user b where a.user_id = b.id and a.quan_id = #{quanId}")
    List<CommentQueryVo> queryCommentByQuanId(@Param("quanId") int quanId);

}